package com.personal.server;

import com.personal.pojo.Blogs;
import com.personal.pojo.BlogsCover;

import java.util.List;

public interface BlogsServer {
    boolean add(Blogs blogs);

    List<Blogs> getBlogsByUserId(String id);

    boolean delete(String id);

    boolean update(Blogs blogs);

    List<Blogs> getAllBlogs();

    List<Blogs> getBlogsByTitle(int pageNum, int pageSize);

    List<BlogsCover> getAllBlogsCover();

    List<BlogsCover> getMyBlogsCoverById(Integer id);

    Blogs getOneBlogsById(Integer id);

    List<Blogs> searchBlogsByTitle(String title);

    List<BlogsCover> searchBlogsByBlogsId(List<Blogs> b);
}
